// components/custom-modal/customModal.js
Component({
  properties: {
      title: {
          type: String,
          value: '提示'
      },
      content: {
          type: String,
          value: ''
      },
      showCancel: {
          type: Boolean,
          value: true
      },
      cancelText: {
          type: String,
          value: '取消'
      },
      confirmText: {
          type: String,
          value: '确定'
      },
      cancelColor: {
          type: String,
          value: '#000000'
      },
      confirmColor: {
          type: String,
          value: '#3CC51F'
      },
      visible: {
          type: Boolean,
          value: false
      }
  },
  methods: {
      onCancel() {
          this.triggerEvent('cancel');
      },
      onConfirm() {
          this.triggerEvent('confirm');
      },
      goprivacy(){
        wx.navigateTo({
          url:'../../pages/logs/logs.wxml'
        })
      }
  }
});
